using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Text;
using SystemFrameworks;
using Common;
using Microsoft.ApplicationBlocks;
using BusinessRules;
using DataAccess;

namespace BusinessRules
{
    public class Acciones
    {
        private const String ACC_ID_PARAM = "@ACC_ID";
        
        private string _CadenaConexion;

        public string CadenaConexion
        {
            get { return _CadenaConexion; }
            set { _CadenaConexion = value; }
        }

        public Acciones(string strCadenaConecxion)
        {
            CadenaConexion = strCadenaConecxion;
        }

        public Adm_AccionesData BuscarAcciones()
        {
            try
            {
                Adm_AccionesData objDS = new Adm_AccionesData();
                Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteDataTable(CadenaConexion, CommandType.StoredProcedure, "PAS_BUSCAR_ADM_ACCIONES", objDS);

                return objDS;
            }
            catch (Exception objEx)
            {
                throw new ApplicationExceptionManager(Utilidad.TraerMensaje("gmsgErrorBuscar", "adm_acciones"), objEx);
            }
        }        
    }
}
